//
//  ZYNearLiveCell.m
//  YaYa
//
//  Created by 张亚 on 2019/1/11.
//  Copyright © 2019年 张亚. All rights reserved.
//

#import "ZYNearLiveCell.h"

@interface ZYNearLiveCell ()

@property (weak, nonatomic) IBOutlet UIImageView *headView;
@property (weak, nonatomic) IBOutlet UILabel *distanceLabel;


@end

@implementation ZYNearLiveCell
- (void)setLive:(ZYLiveModel *)live {
    _live = live;
    
    self.headView.image = [UIImage imageNamed:live.name];
    self.distanceLabel.text = live.title;
    
}

- (void)showAnimation {
    if (self.live.isShow) {
        return;
    }
    self.layer.transform = CATransform3DMakeScale(0.1, 0.1, 1);
    [UIView animateWithDuration:0.5f animations:^{
        self.layer.transform = CATransform3DMakeScale(1, 1, 1);
        self.live.show = YES;
    }];
}

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
